import useSystemStore from '@/stores/system'
import initConfigs from 'neuron-apollo-common'

export default async function registerApollo() {
  const apolloConfig: any = await initConfigs()
  const systemStore = useSystemStore()
  systemStore.updateAwsConfig(apolloConfig.awsConfig)
  systemStore.updateApiCconfig(apolloConfig.apiConfig)
  systemStore.updatePublicKey(apolloConfig.publicKey)
}
